<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<%
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
    if (user != null) {
%>
<center><h1>Agenda</h1></center>
<p>Olá, <%= user.getNickname() %>.</p>


<form id="dados" name="dados" method="post" action="/postar">
  <label>
  Primeiro Nome
  <input name="prinmeiroNome" type="text" id="prinmeiroNome" size="25" maxlength="25" />
  </label>
  <p>
    <label>Segundo Nome
    <input name="segundoNome" type="text" id="segundoNome" size="25" maxlength="25" />
    </label>
  </p>
  <p>
    <label>Aniversario
    <input type="text" name="aniversario" id="aniversario" />
    </label>
  </p>
  <p>
    <input type="submit" name="enviar" id="enviar" value="enviar" />
    <input type="reset" name="limpa" id="limpa" value="Reset" />
  </p>
</form>
</body>
</html>
